package com.itdr.protal.service;

import com.itdr.common.ServerResponse;
import com.itdr.pojo.Cart;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author AirZhang
 * @since 2020-10-20
 */
public interface ICartService extends IService<Cart> {
    ServerResponse listAll(Integer uid,Integer pageNum,Integer pageSize);

    ServerResponse add(Integer id, Integer pid, Integer num,Integer pageNum,Integer pageSize);

    ServerResponse updateOne(Integer id, Integer pid, Integer num, Integer pageNum, Integer pageSize);

    ServerResponse deleteOne(Integer id, Integer pid, Integer pageNum, Integer pageSize);

    ServerResponse deleteAll(Integer id);

    ServerResponse checked(Integer id, Integer pid, Integer pageNum, Integer pageSize);

    ServerResponse checkedAll(Integer id, Integer pageNum, Integer pageSize);

    ServerResponse selectChecked(Integer id, Integer pageNum, Integer pageSize);

    ServerResponse total(Integer id);
}
